﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FichoWeb.Models
{
    public class Comment
    {
        public int Id { get; set; }
        public string Text { get; set; }

        private DateTime? _Created = null;
        public DateTime Created
        {
            get
            {
                return this._Created.HasValue ? this._Created.Value : DateTime.Now;
            }
            set
            {
                this._Created = value;
            }
        }

        public DateTime Modified { get; set; }
        public int UserID { get; set; }

        public virtual User User { get; set; }
    }
}